<?php

/*
	[ English learning assistant system]
	NAME:admin_model
*/
if (!defined('IN_ELS'))
{
    die('Hacking attempt');
}

class ajaxbase extends base {
	function ajaxbase() {
		$this->base();
	}
	//根据ID取用户信息
	function getImgInfo($id)
	{
		$sql = "SELECT image_url,id from gnw_u_image where biaoshi='".$id."' order by id desc ";
		$data = $this->db->fetch_first($sql);
		return $data;
	}
	//添加入库操作
	function insertimg($data){
		$retValue = $this->dbInsert("gnw_u_image",$data);
		return $retValue;
	}
}
?>